This project aims to analyze user sentiments and categorize them as Postive, Negative, or Neutral.¶

Explanation: Nowadays, customer feedback plays a substantial role in shaping buying choices within the market. For instance, Google gives preference to websites that receive favorable reviews from their users. Consequently, it becomes essential to identify and address negative reviews to prevent them from potentially harming product marketing efforts.

In [1]:
# importing required libraries

import pandas as pd # for analysing the data
import numpy as np # for mathematical collections on arrays
import matplotlib.pyplot as plt # for plotting
import seaborn as sns # for plotting
import sklearn as skl # for machine learning algorithms

import nltk # natural language toolkit
stemmer=nltk.SnowballStemmer(language="english") 
nltk.download("stopwords")
from nltk.corpus import stopwords # corpus means single collection and corpora means multiple collection of data
stopwords=set(stopwords.words("english")) # make a set of particular english words 


import string # used for purpose of cleaning
import re # for regular expression
from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator

from nltk.sentiment.vader import SentimentIntensityAnalyzer
from nltk.stem.wordnet import WordNetLemmatizer
import contractions
[nltk_data] Downloading package stopwords to
[nltk_data]     C:\Users\yomee\AppData\Roaming\nltk_data...
[nltk_data]   Package stopwords is already up-to-date!
Getting the Data¶
In [2]:
# Reading CSV file

data=pd.read_csv ("flipkart_data.csv")
data_safe=pd.read_csv("flipkart_data.csv")
data
Out[2]:
review rating
0 It was nice produt. I like it's design a lot. ... 5
1 awesome sound....very pretty to see this nd th... 5
2 awesome sound quality. pros 7-8 hrs of battery... 4
3 I think it is such a good product not only as ... 5
4 Awsome sound powerful bass battery backup is a... 5
... ... ...
484 The right and left distribution is not okay...... 4
485 nice Bluetooth headphone, I am pleased with it... 5
486 excellent sound quality with deep bass. good b... 5
487 this is a very good product boat headphone goo... 5
488 This headphone is very stylish but if you look... 4

489 rows × 2 columns

Exploring and visualising the data to gain insights¶
In [3]:
# data.insert(0, "id",np.arange(1, len(data) + 1))
In [42]:
data.head()
Out[42]:
review rating Positive Negative Neutral Output Character Counts Word Counts
0 nice produt like design lot easi carri look... 5 0.431 0.000 0.569 Happy 58 9
1 awesom soundveri pretti see nd sound qualiti g... 5 0.471 0.000 0.529 Happy 85 14
2 awesom sound qualiti pros hrs batteri life in... 4 0.194 0.000 0.806 Unhappy 334 48
3 think good product per qualiti also design qui... 5 0.393 0.049 0.558 Happy 210 34
4 awsom sound power bass batteri backup also exc... 5 0.486 0.030 0.484 Happy 289 46
In [5]:
# getting information about the data

data.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 489 entries, 0 to 488
Data columns (total 2 columns):
 #   Column  Non-Null Count  Dtype 
---  ------  --------------  ----- 
 0   review  489 non-null    object
 1   rating  489 non-null    int64 
dtypes: int64(1), object(1)
memory usage: 7.8+ KB
Inference - This DataFrame has 489 rows and consists of two columns: 'review' and 'rating.' The 'review' column contains text data (object type), and the 'rating' column contains integer data (int64 type). There are no missing values (non-null) in either column¶
In [6]:
# Is there any null values present in the data? IF yes, the sum is:)
data.isnull().sum()
Out[6]:
review    0
rating    0
dtype: int64
In [7]:
data.describe()
Out[7]:
rating
count 489.000000
mean 4.370143
std 0.921070
min 1.000000
25% 4.000000
50% 5.000000
75% 5.000000
max 5.000000
Inference - Average rating of the product is approximately 4.37 which means that product is not so bad.¶
In [8]:
def clean(text):
    text=str(text).lower()
    text=re.sub("https://\S+ | www\.\S+", "", text)                # removing website starting protocols links  
    text=re.sub("#[\w]*", "", text)                                # removing special tags like #awesome
    text=re.sub("<.*?>", "", text)                                 # removing html tags
    text=re.sub('\n', "", text)                                    # removing new lines
    text=re.sub("\w*\d\w*", "", text)
    text= text.encode('ascii','ignore')                            # Remove emojis and errors
    text=text.decode()
    text=contractions.fix(text)                                    # Changing you're -> you are | Removing contractions
    
    text=text.translate(str.maketrans('','',string.punctuation))   # 1st parameter represents what need to be replaced, 2nd parameter represents what need to be placed instead of replaced word, and 3rd parameter represents what need to be deleted
    text=[stemmer.stem(word) for word in text.split(" ") if word not in stopwords] # it finds the stem word (basic word ) for example: cared ->care
    text=" ".join(text)
    return text
    
In [9]:
# Cleaning the data using regular expression
data['review']=data['review'].apply(clean)
data
Out[9]:
review rating
0 nice produt like design lot easi carri look... 5
1 awesom soundveri pretti see nd sound qualiti g... 5
2 awesom sound qualiti pros hrs batteri life in... 4
3 think good product per qualiti also design qui... 5
4 awsom sound power bass batteri backup also exc... 5
... ... ...
484 right left distribut okayotherwis sound qualit... 4
485 nice bluetooth headphon pleas perform day use... 5
486 excel sound qualiti deep bass good batteri bac... 5
487 good product boat headphon good best also nice... 5
488 headphon stylish look bass dj dispoint batteri... 4

489 rows × 2 columns

In [10]:
ratings=data['rating'].value_counts()
ratings
Out[10]:
rating
5    280
4    146
3     42
1     15
2      6
Name: count, dtype: int64
Visualisation¶
In [11]:
# Data Visualisation
ratings=data['rating'].value_counts()
categories=ratings.index
quantities=ratings.values

import plotly.express as px
figure=px.pie(data, 
             values=quantities,
             names=categories,)

figure.show()
In [12]:
# In other way using histogram 
sns.FacetGrid(data, height=8).map(sns.histplot, "rating")

plt.show()

# mostly rating lies in between 4 to 5 range 
Inference - Approximately 60 percent ratings, Flipkart got for this particular product is 5.¶
In [13]:
text=" ".join(i for i in data.review)
wordcloud= WordCloud(stopwords=stopwords, background_color='white').generate(text)
plt.figure(figsize=(15, 20))
plt.imshow(wordcloud)
plt.axis("off")
plt.show()

Inference -¶

The more the size of word, the more frquently that appear in the reviews.¶
We can see that both good and headphon are the two words which are big in size. So it we can say, that many people have given review that headphones are good.¶
In [14]:
# Analysing the scores of reviews to be positive, negative and neutral

nltk.download('vader_lexicon')
sentiment=SentimentIntensityAnalyzer()
data['Positive']=[sentiment.polarity_scores(i)['pos'] for i in data.review]
data['Negative']=[sentiment.polarity_scores(i)['neg'] for i in data.review]
data['Neutral']=[sentiment.polarity_scores(i)['neu'] for i in data.review]
data.head()
[nltk_data] Downloading package vader_lexicon to
[nltk_data]     C:\Users\yomee\AppData\Roaming\nltk_data...
[nltk_data]   Package vader_lexicon is already up-to-date!
Out[14]:
review rating Positive Negative Neutral
0 nice produt like design lot easi carri look... 5 0.431 0.000 0.569
1 awesom soundveri pretti see nd sound qualiti g... 5 0.471 0.000 0.529
2 awesom sound qualiti pros hrs batteri life in... 4 0.194 0.000 0.806
3 think good product per qualiti also design qui... 5 0.393 0.049 0.558
4 awsom sound power bass batteri backup also exc... 5 0.486 0.030 0.484
In [15]:
x= sum(data['Positive'])
y= sum(data['Negative'])
z= sum(data['Neutral'])
In [16]:
# reviews having negative sentiments more than 10 percent to find reason for the bad feedback
data_safe[data['Negative']>0.10]
Out[16]:
review rating
18 Amazing Audio product from boAt.• Superb bass.... 5
19 awesome bass sound quality very good bettary l... 5
37 Delivery is to slow.Sound quality is super and... 4
60 Not good at all only because of one reason the... 1
70 It's amazing but one problem is after 1 month ... 5
... ... ...
438 I can't believe this kind of advanced features... 5
439 Super low price for an extraordinary product. ... 5
450 No doubt on this its awesome But its not for h... 4
457 Have been using this for more than 6 months no... 5
464 i am writing this review aftet using it 1 week... 5

64 rows × 2 columns

In [17]:
def max_sentiment_score(x, y, z):
    if(x>y and x>z):
        return 'Positive'
    elif (y>x and y>z):
        return 'Negative'
    else:
        return 'Neutral'
    
max_sentiment_score(x, y, z)
Out[17]:
'Neutral'
Inference - Maximum Sentiment Score is 'Neutral '. Which means that if we will add up the sentiment effect of reviews on the customer, It will not impact positive on the person surely. It can affect positive or negative acccording to the comments, he/she is reading.¶

Model Training¶

In [18]:
data['Output']=np.where((data['Positive']+data['Neutral']>0.80), 'Happy', 'Unhappy')
data.head()
Out[18]:
review rating Positive Negative Neutral Output
0 nice produt like design lot easi carri look... 5 0.431 0.000 0.569 Happy
1 awesom soundveri pretti see nd sound qualiti g... 5 0.471 0.000 0.529 Happy
2 awesom sound qualiti pros hrs batteri life in... 4 0.194 0.000 0.806 Happy
3 think good product per qualiti also design qui... 5 0.393 0.049 0.558 Happy
4 awsom sound power bass batteri backup also exc... 5 0.486 0.030 0.484 Happy
In [20]:
 data['Output'].dtype
Out[20]:
dtype('O')
In [21]:
data['Output'] = data['Output'].astype(str)
In [22]:
data['Output'].fillna('Missing', inplace=True)
In [23]:
print(data['Output'].nunique())
2
In [24]:
print(data['Output'].unique())
['Happy' 'Unhappy']
In [25]:
sns.countplot(x=data['Output'])
plt.show()
In [26]:
# is data balanced?
#sns.countplot(data['Output'])
Inference - We can see that our data is imbalanced so if we will train our data, it will be trained inaccurately.¶
In [27]:
data['Output']=np.where(data['rating']>4, 'Happy', 'Unhappy')
In [28]:
sns.countplot(x=data['Output'])
plt.show()
In [29]:
# Now, is data balanced?
#sns.countplot(data['Output'])
Yessaa!, Now our data is more balanced than before.¶
Here we go¶
In [30]:
data["Character Counts"]=[len(i) for i in data.review]
data
Out[30]:
review rating Positive Negative Neutral Output Character Counts
0 nice produt like design lot easi carri look... 5 0.431 0.000 0.569 Happy 58
1 awesom soundveri pretti see nd sound qualiti g... 5 0.471 0.000 0.529 Happy 85
2 awesom sound qualiti pros hrs batteri life in... 4 0.194 0.000 0.806 Unhappy 334
3 think good product per qualiti also design qui... 5 0.393 0.049 0.558 Happy 210
4 awsom sound power bass batteri backup also exc... 5 0.486 0.030 0.484 Happy 289
... ... ... ... ... ... ... ...
484 right left distribut okayotherwis sound qualit... 4 0.225 0.000 0.775 Unhappy 88
485 nice bluetooth headphon pleas perform day use... 5 0.368 0.000 0.632 Happy 103
486 excel sound qualiti deep bass good batteri bac... 5 0.393 0.000 0.607 Happy 96
487 good product boat headphon good best also nice... 5 0.754 0.000 0.246 Happy 65
488 headphon stylish look bass dj dispoint batteri... 4 0.309 0.000 0.691 Unhappy 91

489 rows × 7 columns

In [31]:
data["Word Counts"]=[len(i.split()) for i in data.review]
data
Out[31]:
review rating Positive Negative Neutral Output Character Counts Word Counts
0 nice produt like design lot easi carri look... 5 0.431 0.000 0.569 Happy 58 9
1 awesom soundveri pretti see nd sound qualiti g... 5 0.471 0.000 0.529 Happy 85 14
2 awesom sound qualiti pros hrs batteri life in... 4 0.194 0.000 0.806 Unhappy 334 48
3 think good product per qualiti also design qui... 5 0.393 0.049 0.558 Happy 210 34
4 awsom sound power bass batteri backup also exc... 5 0.486 0.030 0.484 Happy 289 46
... ... ... ... ... ... ... ... ...
484 right left distribut okayotherwis sound qualit... 4 0.225 0.000 0.775 Unhappy 88 11
485 nice bluetooth headphon pleas perform day use... 5 0.368 0.000 0.632 Happy 103 14
486 excel sound qualiti deep bass good batteri bac... 5 0.393 0.000 0.607 Happy 96 16
487 good product boat headphon good best also nice... 5 0.754 0.000 0.246 Happy 65 10
488 headphon stylish look bass dj dispoint batteri... 4 0.309 0.000 0.691 Unhappy 91 15

489 rows × 8 columns

In [32]:
data.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 489 entries, 0 to 488
Data columns (total 8 columns):
 #   Column            Non-Null Count  Dtype  
---  ------            --------------  -----  
 0   review            489 non-null    object 
 1   rating            489 non-null    int64  
 2   Positive          489 non-null    float64
 3   Negative          489 non-null    float64
 4   Neutral           489 non-null    float64
 5   Output            489 non-null    object 
 6   Character Counts  489 non-null    int64  
 7   Word Counts       489 non-null    int64  
dtypes: float64(3), int64(3), object(2)
memory usage: 30.7+ KB
In [33]:
data.describe()
Out[33]:
rating Positive Negative Neutral Character Counts Word Counts
count 489.000000 489.000000 489.000000 489.000000 489.000000 489.000000
mean 4.370143 0.372517 0.034108 0.593364 158.163599 24.609407
std 0.921070 0.156687 0.055114 0.142251 77.438750 12.069335
min 1.000000 0.000000 0.000000 0.169000 30.000000 4.000000
25% 4.000000 0.259000 0.000000 0.501000 96.000000 15.000000
50% 5.000000 0.368000 0.000000 0.592000 139.000000 21.000000
75% 5.000000 0.481000 0.063000 0.696000 216.000000 33.000000
max 5.000000 0.831000 0.298000 1.000000 377.000000 59.000000
In [34]:
data.to_csv("data_new.csv")
In [40]:
plt.figure(figsize=(15, 10))
sns.barplot(x='Word Counts', y='Character Counts', hue='Output', data=data)
plt.title('Character Counts vs Word Counts of reviews with categorical variable of Output')
Out[40]:
Text(0.5, 1.0, 'Character Counts vs Word Counts of reviews with categorical variable of Output')
In [36]:
plt.figure(figsize=(5, 10))
sns.barplot(x='Output', y='Word Counts', data=data)
plt.title('Output vs Word Counts of reviews')
Out[36]:
Text(0.5, 1.0, 'Output vs Word Counts of reviews')
Inference - Both unhappy and happy ones have written same number of words approximately.¶
In [41]:
from sklearn.model_selection import train_test_split

Independent_var=data.review
dependent_var=data.Output

ID_train, ID_test, D_train, D_test=train_test_split(Independent_var, dependent_var, test_size=0.3 )
In [38]:
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.linear_model import LogisticRegression

tfidfvector=TfidfVectorizer()
classifier=LogisticRegression(solver="lbfgs")

from sklearn.pipeline import Pipeline

model=Pipeline([('vectorizer', tfidfvector), ('classifier', classifier)])
model.fit(ID_train, D_train)


from sklearn.metrics import confusion_matrix, accuracy_score, precision_score, recall_score, f1_score
predictions=model.predict(ID_test)
print(confusion_matrix(predictions, D_test))
print("Accuracy of the model: ", accuracy_score(D_test, predictions))
print("Precision of the model: ", precision_score(D_test, predictions, average=None))
print("Recall of the model: ", recall_score(D_test, predictions, average=None))
print("F Score of the model: ", f1_score(D_test, predictions, average=None))
[[67 26]
 [20 34]]
Accuracy of the model:  0.6870748299319728
Precision of the model:  [0.72043011 0.62962963]
Recall of the model:  [0.77011494 0.56666667]
F Score of the model:  [0.74444444 0.59649123]
Inference - The accuracy of our model is 68.7%, which is more than 50% .That is good¶
In [39]:
##### Inference - Both unhappy and happy ones have written same number of words approximately.
zipped_data=zip(list(np.array(ID_train)), list(np.array(D_test)), list(predictions))
for i, j, k in zipped_data:
    print("Review: ", i)
    print("Target:  ",j)
    print("Prediction: ",k)
    print()
    
Review:  suburb amaz product love suggest  buy boat headphon flipkart nice seller fast deliveri ekartread
Target:   Happy
Prediction:  Unhappy

Review:  receiv today thank fast deliveri first second time purchas headphon rang headphon like dream read
Target:   Unhappy
Prediction:  Happy

Review:  design colour   good  sound qualiti awesom  love much productread
Target:   Unhappy
Prediction:  Unhappy

Review:  one best product ever use realli want say must buy enjoy everyon beauti product ever use headphon compar product one thing want say love itread
Target:   Happy
Prediction:  Happy

Review:  awesom high recommend one use jbl soni one far better cannot find better wireless headphon  bass sound clariti awesom amaz play wireread
Target:   Happy
Prediction:  Unhappy

Review:  good headphon give decent bass comfort take almost  day adjust elast although want good headphon overal decent qualiti go need extrem bass  buy skull candyread
Target:   Unhappy
Prediction:  Unhappy

Review:  realli like product awesom product seal open dirti mean use  product good like would like suggest flipkart send use product anyway headphon realli awesomeread
Target:   Unhappy
Prediction:  Unhappy

Review:  awesom sound qualiti batteri backup amaz comfort look wise love productread
Target:   Happy
Prediction:  Happy

Review:  amaz headphon  use main game minimalzero latencyyou hear everi detail game realli help portabl build best would say definit lightest wireless headphon around confid worth moneysometim use laptop use  cabl happi itread
Target:   Happy
Prediction:  Happy

Review:  first flipkart deliv agent behavior good reliablesecond boat headphon qualiti durabl good far aspect ed fascin alsolast thank flipkart grate  product deliveri recommend everyon buy productread
Target:   Happy
Prediction:  Happy

Review:  yes good provid good bass student give ics  board exam holi angel school rajpuraread
Target:   Unhappy
Prediction:  Unhappy

Review:  superb sound nice everyth blockbust product thank much flipkart love allread
Target:   Happy
Prediction:  Happy

Review:  cannot better product low price love use buy without doubt seen lack till full qualiti well good sound jay hind read
Target:   Happy
Prediction:  Happy

Review:  sound qualiti bass amaz headphin clear high mid amaz impress premium look matt black finish thin red line amaz thing headphon valu moneyread
Target:   Happy
Prediction:  Happy

Review:  love product nd thank much flipkart chip price boat rockerz  bluetooth headset nd bass ifect awsm nd sound also goodread
Target:   Unhappy
Prediction:  Unhappy

Review:  super duper hit bass sound qualiti best batteri backup best beauti  color best money best productsread
Target:   Unhappy
Prediction:  Happy

Review:  product descript page say bluetooth v  actual v  mean poor connect rangeyou adjust equal set phone allow get good sound els hear bass vocal sound suppress sound qualiti good listen musicbewar buy make regular voip call sound keep break nois ideal call meetingsbuild qualiti could betterread
Target:   Happy
Prediction:  Happy

Review:  nice headset good bass batteri backup great seem problem mic pretti good job noic cancel greatread
Target:   Happy
Prediction:  Happy

Review:  realli like headphon sound qualiti design also good comfort well howev want buy call perfect product microphon perfect person phone abl hear clearlyread
Target:   Happy
Prediction:  Happy

Review:  best product reason price valu money durabl well love thank flipkartread
Target:   Unhappy
Prediction:  Happy

Review:  overal nice product  bass good  voic accuraci littl inaccur play song  batteri backup also good  rang actual  within  rang use overal good product say  best valu money deal special sale  littl tight ear  use day long  except mention issu niceread
Target:   Unhappy
Prediction:  Happy

Review:  honest review use coupl day pleas rememb buy headphonesprossuperb bass sound qualiti nois cancel superb use bus abl hear sound come price product realli low price get product look definit awesomeconsbluetooth connect poor bluetooth version  lag sometim might feel small gread
Target:   Unhappy
Prediction:  Unhappy

Review:  one best headphon coz featur qualiti superb design also cool super extra bass wireless function also given music playback time  like guy go thinkread
Target:   Unhappy
Prediction:  Happy

Review:  awesom product awesom sound qualiti deep bass person opinion buy reason price  thank flipkart awesom productread
Target:   Unhappy
Prediction:  Unhappy

Review:  wahooo best product boat headphon best sound qualiti deliveri late product best best flipkart parcel servic best thanku flipkart happi shoppingread
Target:   Unhappy
Prediction:  Unhappy

Review:  better product good sound qualiti two way useabl thank sellerread
Target:   Happy
Prediction:  Happy

Review:  materi qualiti best well sound bass superb lockdown receiv order within  dayread
Target:   Happy
Prediction:  Unhappy

Review:  nice head phone sound qualiti good batteri back also fine goe con found ear bud small continu use may lead pain earsbuild qualiti also strong nice productiam proud china product made india product
Target:   Unhappy
Prediction:  Unhappy

Review:  nice qualiti headphoneshigh qualiti beat crystal clear sound also fault plug jack sound clear use bluetooth featureit feel someth like uuuuuuread
Target:   Unhappy
Prediction:  Happy

Review:  genuin review sound qualiti nice clear bass averag recommend boat rockerz build qualiti wast broke  monthsmic averag  clearwhen music chang small bit disturb like show best power bass boat rockerz  bestread
Target:   Unhappy
Prediction:  Happy

Review:  write review use one weeki happili say headphon awesomesound pretti goodbass design also goodand import thing perfect tight earsthi much worthi product price rangei got  salebut price enough buy productbeliev go never regret rangeread
Target:   Happy
Prediction:  Happy

Review:  use month honest review sound qualiti bass batteri time good main concern connect feel bluetooth connect issu use headphon even phone pocket special make call claim  meter rang honest pathet also microphon effici nois cancel parti cannot hear proper outsid surround good thing use inread
Target:   Happy
Prediction:  Happy

Review:  best headphon ever use lightweight nice build qualiti superb bass loud time best part nois cancel featur ice cake love product muchread
Target:   Happy
Prediction:  Happy

Review:  good product go itiniti felt littl tight ear later mani usageit cusion get adjust earsfeel good comfort rate 
Target:   Happy
Prediction:  Happy

Review:  boat rocker best choic buy buget headphon bass nice bulid qualiti also good comfort long period useread
Target:   Happy
Prediction:  Unhappy

Review:  right left distribut okayotherwis sound qualiti good clariti okaybass almost perfectread
Target:   Happy
Prediction:  Happy

Review:  realli awesom wireless headphon compar price n realli worth money total love productread
Target:   Unhappy
Prediction:  Happy

Review:  awesom  bass top notch sounf qualiti great even loud speedth batteri backup also good read
Target:   Happy
Prediction:  Happy

Review:  got one defect product first time return order new one seller replac polici unabl hear sound one speaker first purchas new one arriv shock mind blow super bass crystal clear sound work without bluetooth connect aux cabl suppli also got charg cabl charg cabl mark cheap receiv parcel origin product boread
Target:   Happy
Prediction:  Unhappy

Review:  nice headphon bluetooth rang kaam hai long distanc work sound qualiti best batteri also good thank flipkartread
Target:   Happy
Prediction:  Happy

Review:  receiv  januaryth packag good time deliveryi use headphon around  weeksand go good till nowsound      balanc soundbass        good amount bass mani us like                                initi feel bass mark                                later use poweramp music player                                 magic qualiti        read
Target:   Unhappy
Prediction:  Unhappy

Review:  best headphon realli impress batteri backup  continu listen medium volumesound qualiti extra bass also goodit cushion soft good  comfortableread
Target:   Unhappy
Prediction:  Happy

Review:  bass amaz feel like listen long time pain ear start feel use   afterward ear feel pain anyway awesom product clear voic phone call also clearread
Target:   Happy
Prediction:  Happy

Review:  excel  sound qualiti good work well must buyread
Target:   Happy
Prediction:  Happy

Review:  good qualiti product flexibl easi use even good batteri backup must buyread
Target:   Unhappy
Prediction:  Happy

Review:  write review  day usageth sound qualiti rich impress along bass make feel music nois cancel also great batteri backup excel although found littl discomfort ear   continu usag headset littl tight overal great headphon consid price rang great job done boat thank flipkartread
Target:   Unhappy
Prediction:  Unhappy

Review:  nice headphon grt sound qualiti much impress connect iz fast batteri backup iz fabul headband iz lill tight cannot wear long time otherwis grt product fulli satisfiedread
Target:   Happy
Prediction:  Unhappy

Review:  sound qualiti good cannot wear  minut sooo uncomfort ear start pain small size feel like somebodi press ear side great forc boat need improv designread
Target:   Unhappy
Prediction:  Happy

Review:  look design simpli awesom headphon day receiv item glad use feel sound flicker hang increas great extentand rang connect decent got either disconnect hang  meter rang roomunfortun cannot return product get refund want replac thison thing opportun take decis go mread
Target:   Happy
Prediction:  Unhappy

Review:  good product boat headphon good best also nice thank flipkartread
Target:   Happy
Prediction:  Happy

Review:   day use write review  first amaz product boat perform sound qualiti awesom bass kick ear build qualiti good wear ear think wil break easiley nop strong build qualiti assurepro bass extrem battrey backup superbuild qualiti cool     consyou realis ear pain minut first time becom comfortablei reciev read
Target:   Happy
Prediction:  Happy

Review:  made order decemb  night got deliv home around  pm made order flipkart pay later facil big shop day period  dec    price pack good mobil deliveri fast still next month jan   pay due  without extra interest servic fee  charg fine late repay thank flipkart facil boat rocker  superb even price rang  read
Target:   Unhappy
Prediction:  Unhappy

Review:  sound good decent bass good batteri backup got special price rs worth money noic cancel bad other cannot hear us noici place travel overal good product price rangeread
Target:   Unhappy
Prediction:  Unhappy

Review:  good headphonebuilt qualiti goodbass super microphon goodalso littl uncomfort use overal good headphon respect pricei got wow deal big saver day flipkartread
Target:   Happy
Prediction:  Happy

Review:  awesom product guy go believ bass awesom fab mind blow would also like thank flipkart awesom deliveryread
Target:   Happy
Prediction:  Happy

Review:  love headphon awesom base awesom sound qualityi buy headphon octob  use  month review price order itom pretti satisfi till give  starread
Target:   Unhappy
Prediction:  Unhappy

Review:  good wish master polit help natureread
Target:   Unhappy
Prediction:  Happy

Review:  honest product great good sound qualiti light durabl bodi reason price batteri back good featur great quit tight painful ear use long hour day get use opinion best product anyon get price excel qualiti give tri thank boat read
Target:   Happy
Prediction:  Unhappy

Review:  pretti  good   everyth fine     thing  order   decemb   show would  reach  th decemb   decemb   got  decemb     almost  lost hope product  thank god got thisread
Target:   Happy
Prediction:  Happy

Review:  good look super fine clear sound power full bassread
Target:   Happy
Prediction:  Happy

Review:  want buy listen song superb mind blowingif want buy call good bcoz sometim cannot talk clear wise buy itread
Target:   Happy
Prediction:  Happy

Review:  awesom got  flipkar  sale good bass sound qualiti better skull candi jbl price rangeand bluetooth connect awesom upto  rang without obstacl good batteri backup upto read
Target:   Happy
Prediction:  Happy

Review:  fast good pros good sound qualiti good bass  good batteri life con microphon good  wire one may posit sometim voic audibl receiv end otherwis excel product worth moneyread
Target:   Happy
Prediction:  Happy

Review:  thank much flipkart excel product budget ok thank much flipkart  super bass sound qualiti excel tqread
Target:   Unhappy
Prediction:  Unhappy

Review:  wow headphon super super voic  batteri also good best headphon  got  rs wow  cheap  thank flipkart love flipkartread
Target:   Unhappy
Prediction:  Unhappy

Review:  sound clariti good bass super extrdinari build qualiti nice super product like itread
Target:   Happy
Prediction:  Happy

Review:  beauti design comfort wear  sound qualiti batteri back also good thank flipkart  give nice product rangeread
Target:   Unhappy
Prediction:  Happy

Review:  overal product nice  look stylish  light weight sound qualiti also goodread
Target:   Happy
Prediction:  Unhappy

Review:  person like boat brand purchas design  sound con  fit  mic work proper comfort ear way overal good product purchas rs  covid lockdownread
Target:   Happy
Prediction:  Happy

Review:  nice headphon thing bassbatteri etc good nice condit cameread
Target:   Happy
Prediction:  Happy

Review:  almost nice good productwith nice audio clearanc sound qualiti bass power batteri backupread
Target:   Happy
Prediction:  Happy

Review:  valu money got headphon  summer salesound qualiti awesom good bass good nois cancel also connect devic quick n devic show batteri percentag headphon also thr coolest thing headphon often listen music headphon go itmust buy headphon satisfi purchaseread
Target:   Happy
Prediction:  Unhappy

Review:  sound qualiti averag although bass good  ear cushion lil bit smaller tight ear long useag bt batteri backup good enough listen song averag use although nois cancel work good  overal good product go coz give best price rang read
Target:   Unhappy
Prediction:  Unhappy

Review:  honest review  month use bought  flipkartif bass lover go without confusionth base punchi feel ear vibrat thispro punchi bass know headset provid much bass mid  trebl crystal clear hear everi instrument batteri backup excel im get upto  day moder use use accord push upto week charg quicread
Target:   Unhappy
Prediction:  Happy

Review:  use  day readi say someth boat rckrs  design sound qualitybass batteri backup super condit use full day charg one half  hour product abl give full day batteri life  perform btri go low thn take tnsn abl use aux cabl short product best  amount go itread
Target:   Happy
Prediction:  Happy

Review:  one best headset price rang  thing like capabl wire connect batteri charg use cabl provid believ sound qualiti better wire connect compar bluetooth would definit recommend buy  one best rangeread
Target:   Happy
Prediction:  Happy

Review:  best headphon ever sound qualiti good bass style headphon good mic seem great function mic also good soundread
Target:   Unhappy
Prediction:  Unhappy

Review:  product good batteri backup sound qualiti good  suggest product goodread
Target:   Unhappy
Prediction:  Unhappy

Review:  boat rocker best choic buy buget headphon bass nice bulid qualiti also good comfort long period useread
Target:   Happy
Prediction:  Happy

Review:  first review flipkart first purchas boat rockerz  wireless headphon want decent  surround home theater feel excel clear crisp beat around mood listen good music think twice obvious pick product stock end glad product within price rang issu product minor settl within day usag alsoread
Target:   Happy
Prediction:  Unhappy

Review:  nice headphon boat super sound qualiti nice  nice product mfd boatread
Target:   Happy
Prediction:  Happy

Review:  wow headphon super super voic  batteri also good best headphon  got  rs wow  cheap  thank flipkart love flipkartread
Target:   Happy
Prediction:  Happy

Review:  realli excit headphon first  sound qualiti expect bass also good main issu come comfort levelthes headphon comfort start feel pain ear with  min use worst part return option avail product exchang  realli disappoint use good music comfort productread
Target:   Happy
Prediction:  Happy

Review:  almost year purchas thisapril  work date use first timether one drawback gave  star mic good call play game work awesom call voic clear siderest assur best headphon price rang would tell go itread
Target:   Happy
Prediction:  Happy

Review:  wonder full product happi way work sound qualiti  continui use longer period  ear hurt  deliveri flipkart timeread
Target:   Unhappy
Prediction:  Unhappy

Review:  buy child like muchit also good play royal battl game also like muchread
Target:   Happy
Prediction:  Happy

Review:  stun product look phenomen  compat head come topnotch qualiti reason price tagread
Target:   Unhappy
Prediction:  Happy

Review:  awesom productawesom bass  recommend everyon buy bass good batteri backup awesom final sound clearread
Target:   Unhappy
Prediction:  Happy

Review:  light weight easi carri anywher attract model awesom servic flipkart love itread
Target:   Unhappy
Prediction:  Unhappy

Review:  nice flipkart l love manag thank much gave nice productread
Target:   Happy
Prediction:  Unhappy

Review:  wonder headset boat rockerz  bass good clariti soundsthen differ type fusion sound edit song  awesom mindblow worth buy product miss itread
Target:   Unhappy
Prediction:  Happy

Review:  excel product high qualiti sound clariti crisp high bassperfect rang wirelessbett jbl moto etcfit well n superb n soft cushionread
Target:   Happy
Prediction:  Happy

Review:  cannot express good good enoughsound outstand bass outstand batteri backup outstand everyth outstand productread
Target:   Happy
Prediction:  Unhappy

Review:  thank flipkart fast deliveri sound  qualiti mind blow  bole pesa vasul product  thank much flipkart  read
Target:   Happy
Prediction:  Happy

Review:  first thank flipkarti got headphon  day earlierjust imagineblaz fast deliveri flipkartok review use  day design  comfort frank speak first headphon design pretti satisfactori show front friend  purchas black red one earcup adjust problem wearingnow comfort mani say tight uncomfort honestread
Target:   Happy
Prediction:  Happy

Review:  great budget headphon look headphon budget  think twice bass head amaz batteri  decent   hrs averag fit good sometim feel loos need adjust overal good option design improv get  starsread
Target:   Happy
Prediction:  Unhappy

Review:  write review use item monthpro good build good sound qualityi want get bass littl us actual understand say direct tell sound good smooth dual connect bluetoothaux cabl long  good fitthey extend easi usethey difficult usecon littl bit tightfeel tight new headphon user feel goneread
Target:   Unhappy
Prediction:  Happy

Review:  pack boat headset awesom qualiti like beastflipkart make good progress pack qualiti checkingbass fabulousand comfort use itthank deliv boat headset super speedthi headset order  came hand keep flipkart faster deliveryread
Target:   Unhappy
Prediction:  Unhappy

Review:  boat rockerz  sound qualiti  perfect bass awesom batteri life good see  desgin headset good comfort start use  ear start sweat feel uncomfort lock ear tight loosen fit ear start slip overal good product low cost boat tought design first read
Target:   Happy
Prediction:  Happy

Review:  first product boat headphon awesom   sound qualiti amaz loud  feel vibrat play music headphon come one year warranti super  pack product soooooo good  design build appreci even celebr use headphon  headphon cheap perform incred wonder  think buy  foundread
Target:   Unhappy
Prediction:  Unhappy

Review:  order may   itz work proper sudden one side speaker work proper qualiti product work  daysread
Target:   Unhappy
Prediction:  Unhappy

Review:  awesom product worth moneynic sound nice build nice design buton thing give   east cup small cushion appreci hurt ear wear long periodsread
Target:   Unhappy
Prediction:  Unhappy

Review:  nice head phone red n black combin look good sound qualiti nice  impress bass good call purpos poor mic person opposit side cannot hear voic proper good batteri backup headphon tight ear difficult use longer timeread
Target:   Unhappy
Prediction:  Happy

Review:  good experi got headset wich onsid litl sound low  bass extrem good good experienceread
Target:   Unhappy
Prediction:  Unhappy

Review:  sound qualiti great also compact size make easi usag travel  love itread
Target:   Unhappy
Prediction:  Unhappy

Review:  sound qualiti realli good come adequ bass think build qualiti would much better still quit better brand provid budgetbatteri backup also liter well go want great sound qualiti budgetread
Target:   Happy
Prediction:  Happy

Review:  good product price sound qualiti good experienc issu use month whenev watch video sound goe mute rewind video unmut give extra wire headphon along usb design rock well built key okay improv littl bit batteri life good start drain frequent littl long useread
Target:   Unhappy
Prediction:  Unhappy

Review:  super sound awesom bass good dj song batteri back also good got aginst  rs realli realli nice headphoneread
Target:   Happy
Prediction:  Happy

Review:  best world bass  product like much  best thing colorread
Target:   Unhappy
Prediction:  Unhappy

Review:  decent good product price sinc use  month face issu sound   sound headphon satisfi best price must say  talk batteri backup headphon come good batteri  long last henc use play  hour daili batteri remain till  daysproblemth problem face  month  product  bluetooth rang  problem common everi bluetoread
Target:   Happy
Prediction:  Happy

Review:  initi think return flipkart approv felt keep itanywaypro sound good bit bass vocal clear  alway depend music video file media playerex flac  audio file poweramp player  hd video dolbi atom batteri last   charg full  hrscon feel tight get use  micthat  monthsif anyth happen postread
Target:   Happy
Prediction:  Happy

Review:  item sound good refund option avail  plz go item tot wastag timeread
Target:   Unhappy
Prediction:  Happy

Review:  use sinc  monthsprossound qualiti amaz awesom bassgood listen music movi travellingbluetooth connect gudautoconnect bluetooth ongood fit around ear like joggingbatteri backup gudgood receiv cal scepticalsometim sound clear person still audibl travellingbut work fine timeconsnot muchit tight fit around thread
Target:   Unhappy
Prediction:  Unhappy

Review:  bass heavi expect like premium headphon sound qualiti good excel good deal  bucksread
Target:   Happy
Prediction:  Happy

Review:  bought flipkart sale  must say worth price bass pretti cool  sound qualiti awesom bt still give  star becoz littl uncomfort uh wear   ear start get pain bt week get use itread
Target:   Happy
Prediction:  Happy

Review:  got  big billioni use  nd feel absolut satisfi product apart satisfi build qualiti would vote excel aspect jst go itread
Target:   Happy
Prediction:  Happy

Review:  got son onlin school find help farproslook goodsound qualiti goodfit well  heatconsspeakerm clear time voic breakingcontinu usag caus ear pain  discomfort take break volum control button work wellread
Target:   Happy
Prediction:  Unhappy

Review:  sound tooo goodand qualiti good happi devic sound qualiti import best qualiti musicread
Target:   Happy
Prediction:  Unhappy

Review:  headphon awesom  may feel inconveni headphon tight  may uncomfort upto day come sound qualiti good bass awesom  listen use wire bass high compar bluetooth slip head even runningfin good product give  rate itread
Target:   Unhappy
Prediction:  Happy

Review:   high ultra deep base sound feel like  good batteri backup standbi upto   good sound  light weight like  gram  cool design easili foldabl carri outread
Target:   Happy
Prediction:  Happy

Review:  batteri backup good design also good sound clariti best bass awesom  earphon snug fit mean fit accord head size bluetooth pair also fast overal good must buy read
Target:   Unhappy
Prediction:  Happy

Review:  talk sound qualiti want rate awsm qualiti deep bass peac ear  design  like thing much one friend own awsm product get know wonder product search sorri cannot say anyth much batteri  back write review within  product deliveri      like product hope                   shiread
Target:   Happy
Prediction:  Happy

Review:  headphon much tight earboat think ear made real rocksbut nohuman use headphonesound qualiti good comfort okokbatteri also okokbut price good dealso booght itread
Target:   Happy
Prediction:  Happy

Review:  product realli good  realli happi bcos want bajact wireless headphon everyth iss good look sometim feel simpl cup tea r look look go other also praform iss gud price got rs read
Target:   Unhappy
Prediction:  Happy

Review:  wooowwww superb product good effect sound clariti bluetooth r work good system mobil phone headphon charger cabl also connect wire  warranti woooww  thank read
Target:   Happy
Prediction:  Happy

Review:  use  day found nice product buy good sound good bluetooth rang usb cabl also given overal good product buy averag price rangeread
Target:   Happy
Prediction:  Happy

Review:  great headphon afford price segment muff tight first use go get better time get adjustedread
Target:   Happy
Prediction:  Happy

Review:  sound qualiti amaz fantast lookbut comfort ear size littl largebcauz ear pretti larg pressuris ear lot cannot use  minread
Target:   Happy
Prediction:  Unhappy

Review:  honest review boat rockerz  product realli awesom buy headphon play gamessong etcit batteri life  hour charg time  hour also extra bass problem soundand realli awesomeread
Target:   Happy
Prediction:  Happy

Review:  nice headphon excel sound qualiti easi toggl comfort well worth price would sayread
Target:   Unhappy
Prediction:  Unhappy

Review:  good sound qualiti reason price colour amaz volum set much good semi comfort wear purpos good productread
Target:   Unhappy
Prediction:  Unhappy

Review:  awsom sound power bass batteri backup also excel love bass huge lover music bass design build also niceand first time bought headphon electron item glad say first time love     excel product         thank boat make nice product keep make thank flipkart team deliv nice product risk lifread
Target:   Unhappy
Prediction:  Unhappy

Review:   month bought honest reviewmateri qualiti pretti good mic good talk phoneon easili hear song r play anyon nearbi youread
Target:   Happy
Prediction:  Happy

Review:  best sound  qualiti   perfect bass  build qualiti good  aux cabl defect led  light good read
Target:   Happy
Prediction:  Happy

Review:  headphon awesom bass crystal clear music batteri backup  hour  say confirm best headphon  headphon bass beat also small sound clear   envent headphon acoust hear music deep headphon best rap  song listenersread
Target:   Happy
Prediction:  Happy

Review:  headphon better choic budget sound qualiti awesom batteri backup perfect approx   hour build qualiti averag one word better choiceread
Target:   Happy
Prediction:  Unhappy

Review:  sound awesom truli love batteri backup boat work well comfort make ear pain  min toler littl bit pain go purchas  saleread
Target:   Happy
Prediction:  Unhappy

Review:  use  month work smooth without issu good bass proper mainten sound qualiti overal good choic look good headset mid rangeread
Target:   Happy
Prediction:  Happy

Review:  great headphon afford price segment muff tight first use go get better time get adjustedread
Target:   Happy
Prediction:  Unhappy

Review:  review  week usageit one top qualiti product boat nice sound qualiti  amaz bass although got issu regard connect keep asid awesom productread
Target:   Unhappy
Prediction:  Happy

Review:  superb qualiti littl bit tightbluetooth connect averagebass clear high want good sound qualiti good bass wireless headphon go itread
Target:   Unhappy
Prediction:  Unhappy

Review:  best boom headset ever price rang great sound qualiti  dual mode wire wireless us awesomeread
Target:   Happy
Prediction:  Happy

Review:  loo comfort one choic short ear  recommend buy sound qualiti fabul read
Target:   Unhappy
Prediction:  Happy

Review:  nice design good product sound nice wire wireless aux connect dell laptopread
Target:   Happy
Prediction:  Happy

Review:  worth money headphon peopl metal ear pain long use  cushion soft arramg soft bluetooth rang expect much suitabl bluetooth callinga small dot sound audibl use low volum whenev notif come phone dot sound produc  better use aux cableread
Target:   Happy
Prediction:  Happy

Review:  omg valu money product commit compani bass awesom  build qualiti good budget buy headphon  person recommend go nice productread
Target:   Unhappy
Prediction:  Happy

Review:  bought may  june   complet stop work charg work connect charger audio clear eithernot recommend  buy product rang go earphon rather headphonesread
Target:   Happy
Prediction:  Happy

Sentiment Analysis Project by YoMee¶
In [ ]: